package com.hxf.service.user;

import java.util.List;

import com.hxf.dto.AdminRoleDto;
import com.hxf.dto.AdminUserDto;
import com.hxf.dto.AdminUserRoleDto;
import com.hxf.dto.RestaurentUserDto;
import com.hxf.dto.ReturnData;
import com.hxf.dto.UserDto;
import com.hxf.exception.ServiceException;
import com.hxf.service.base.BaseService;
import com.hxf.web.vo.UserRoleVo;

public interface AdminUserService extends BaseService {

	/**
	 * 联盟管理员信息
	 * @param adminUserDto
	 * @param targetPage
	 * @param pageSize
	 * @return
	 * @throws ServiceException
	 */
	public ReturnData<AdminUserDto> findAdminUser(AdminUserDto adminUserDto, int targetPage, int pageSize) throws ServiceException;
	
	/**
	 * 
	 * @param userIds
	 * @param status
	 * @throws ServiceException
	 */
	public void updateUserStatus(String userIds,Integer status) throws ServiceException;
	
	/**
	 * 后台管理员登录
	 * @param userDto
	 * @return
	 * @throws ServiceException
	 */
	public int loginUser(AdminUserDto userDto)throws ServiceException;
	
	/**
	 * 查询联盟管理员所有角色和已绑定角色
	 * @param urDto
	 * @return
	 * @throws ServiceException
	 */
	public List<UserRoleVo> findByUserAddRole(AdminUserDto urDto,Integer userId)throws ServiceException;
	
	/**
	 * 后台管理员分配权限
	 * @param userDto
	 * @param roleIds
	 */
	public void saveUserAddRole(AdminUserRoleDto userDto,String roleIds)throws ServiceException;
}
